﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000106 RID: 262
	public class TRedshiftCancel : TCustomSqlStatement
	{
		// Token: 0x0600089A RID: 2202 RVA: 0x003023CB File Offset: 0x003005CB
		public TRedshiftCancel(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftCancel;
		}

		// Token: 0x1700017F RID: 383
		// (get) Token: 0x0600089B RID: 2203 RVA: 0x003023DF File Offset: 0x003005DF
		// (set) Token: 0x0600089C RID: 2204 RVA: 0x003023E7 File Offset: 0x003005E7
		public virtual string ProcessId
		{
			get
			{
				return this.processId;
			}
			set
			{
				this.processId = value;
			}
		}

		// Token: 0x17000180 RID: 384
		// (get) Token: 0x0600089D RID: 2205 RVA: 0x003023F0 File Offset: 0x003005F0
		// (set) Token: 0x0600089E RID: 2206 RVA: 0x003023F8 File Offset: 0x003005F8
		public virtual string Message
		{
			get
			{
				return this.message;
			}
			set
			{
				this.message = value;
			}
		}

		// Token: 0x0600089F RID: 2207 RVA: 0x00302404 File Offset: 0x00300604
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.processId = tdummy.st1.ToString();
			if (tdummy.st2 != null)
			{
				this.message = tdummy.st2.ToString();
			}
			return 0;
		}

		// Token: 0x060008A0 RID: 2208 RVA: 0x0030245A File Offset: 0x0030065A
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008A1 RID: 2209 RVA: 0x0030246A File Offset: 0x0030066A
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400121F RID: 4639
		private string processId;

		// Token: 0x04001220 RID: 4640
		private string message;
	}
}
